#pragma once
#include "ir.h"

namespace ir{

class constOptimizer {
public:
    static bool PropagateAndFoldConstants(Function& func);
private:
    static int ComputeBinaryOp(Opcode op, int left, int right);
};

} // namespace ir